﻿using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CRM.Admin.Contracts.Contract.Customer
{
    /// <summary>
    /// 竞争对手情况接口
    /// </summary>
    public interface ICompetitorService : IDependency
    {
        /// <summary>
        /// 顾客明细集合
        /// </summary>
        IQueryable<Competitor> Item { get; }

        /// <summary>
        /// 新增竞争对手情况
        /// </summary>
        /// <param name="dtos"></param>
        /// <returns></returns>
        OperationResult Insert(params CompetitorDto[] dtos);

        /// <summary>
        /// 修改竞争对手情况
        /// </summary>
        /// <param name="dtos"></param>
        /// <returns></returns>
        OperationResult Update(params CompetitorDto[] dtos);

        /// <summary>
        /// 删除竞争对手情况
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);

    }
}
